package com.demo.context;

import org.springframework.context.annotation.Bean;

/**
 * EnableUserInfoTransmitterAutoConfiguration
 *
 * @author liujin
 * @date 2020/12/9 22:07
 */
public class EnableUserInfoTransmitterAutoConfiguration {

    public EnableUserInfoTransmitterAutoConfiguration() {
    }

    @Bean
    public TransmitUserInfoFeighClientIntercepter transmitUserInfo2FeighHttpHeader(){
        System.out.println("-----TransmitUserInfoFeighClientIntercepter");
        return new TransmitUserInfoFeighClientIntercepter();
    }

    @Bean
    public TransmitUserInfoFilter transmitUserInfoFromHttpHeader(){
        System.out.println("-----TransmitUserInfoFilter");
        return new TransmitUserInfoFilter();
    }
}
